package com.thingsgrid.appmanager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.thingsgrid.appmanager.entity.ApplicationInfo;
import com.thingsgrid.appmanager.entity.LocalDevice;
import com.thingsgrid.device.entity.Device;

import java.util.List;

public interface IApplicationsService extends IService<ApplicationInfo> {
	List<ApplicationInfo> showApp();

	List<ApplicationInfo> getApplications(Device app_id);

	Float getNewVersion(String id);

	Page<ApplicationInfo> selectAppPage(Page<ApplicationInfo> page, String device_id, Float app_version, String app_name);


	List<ApplicationInfo> getApp(String app_name, Float version, String device_id);

	Page getApppage(Page page, String app_name, Float version, String device_id);

	List<LocalDevice> getdevice(long size, long current);

}
